package com.desehou.fristspring.dao;

import com.desehou.fristspring.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.ArrayList;

@Component
public interface UserMapper {

    User selectById(@Param("userId") Integer userId);

    User selectByMobeleAndPsw(@Param("mobile") String mobile, @Param("password") String password);

    ArrayList<User> users();

    Boolean editNickNameById(@Param("userId") Integer userId, @Param("nickName") String nickName);

    Boolean register(@Param("mobile") String mobile,@Param("password") String password,@Param("realName") String realName,@Param("nickName") String nickName,@Param("userName") String userName,@Param("token") String token);
}


